import { request } from '../service'

export function userPage (data) {
  return request({
    url: '/seres-user/api/user/all',
    method: 'post',
    params: data
  })
}

export function login (data) {
  return request({
    url: '/seres-user/open/user/platformLogin',
    method: 'post',
    params: data
  })
}

export function userMenu () {
  return request({
    url: '/seres-user/api/user/userMenu',
    method: 'post'
  })
}

export function userCreate (data) {
  return request({
    url: '/seres-user/api/user/create',
    method: 'post',
    params: data
  })
}
export function userUpdate (data) {
  return request({
    url: '/seres-user/api/user/update',
    method: 'post',
    params: data
  })
}

export function getMenuAndAuthId (data) {
  return request({
    url: '/seres-user/api/user/getMenuAndAuthId',
    method: 'get'
  })
}
export function getUserRole (data) {
  return request({
    url: '/seres-user/api/user/getUserRole',
    method: 'get',
    params: data
  })
}

export function bandUserRole (data) {
  return request({
    url: '/seres-user/api/user/bandUserRole',
    method: 'post',
    params: data
  })
}

export function deleteUser (data) {
  return request({
    url: '/seres-user/api/user/deleteUser',
    method: 'post',
    params: data
  })
}
export function updatePassword (data) {
  return request({
    url: '/seres-user/api/user/updatePassword',
    method: 'post',
    params: data
  })
}
